<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message code="memberlogin.form.title" /> </title>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript">
function idfind(user) { //비밀번호 찾는 폼 
	//스크린의 크기
	sw=screen.availWidth;
	sh=screen.availHeight;
	
	//열 창의 포지션
	px=(sw-450)/2;
	py=(sh-300)/2;
	
	window.open("../main/idFind.do","아이디찾기 및 비밀번호","scrollbars=yes, width=450, height=300, resizable=yes,  menubar=no, top=" + py + ", left=" + px); 
	return true; 
} 
function pwfind(user) { //ID폼 
	//스크린의 크기
	sw=screen.availWidth;
	sh=screen.availHeight;
	
	//열 창의 포지션
	px=(sw-450)/2;
	py=(sh-300)/2;
	
	window.open("../main/pwFind.do","아이디찾기 및 비밀번호","scrollbars=yes, width=450, height=300, resizable=yes,  menubar=no, top=" + py + ", left=" + px); 
	return true; 
} 

</script>
</head>

<body>
	<form:form commandName="memberlogin">
	<table width="800"> 
	<!-- 로고 -->
	<tr> 
		<td colspan="4">
			<img src="../images/login.png">
			<hr color="#e10380">
		</td>
	</tr>
	
	<!-- 아이디 로그인버튼 -->
	<tr>
		<td align="right" width="120" style="padding-top: 65px">
			<div class="logintext"><spring:message code="memberlogin.form.id"/></div>
		</td> 
		<td style="padding-top: 65px">  
			<form:input path="userid" cssClass="tb"/>
		</td>
		<td align="center" rowspan="2" style="padding-top: 60px">
			<input type="submit" class="login_btn" 
			value='<spring:message code="memberlogin.form.submit"/>'>
		
		</td>
		<td rowspan="4">
			<img src="../images/loginbener.jpg"> 
		</td>
	</tr>
	<!-- 비번 -->
	<tr>
		<td align="right">
			<div class="logintext"><spring:message code="memberlogin.form.passwd"/></div>
		</td>
		<td>
			<form:password path="upwd" cssClass="tb"/>
		</td>
	</tr>
	
	<!-- 입력하지 않을시 -->	
	<tr>
		<td colspan="2" align="right">
			<form:errors element="div"></form:errors>	
			<div><form:errors path="userid"/></div>
			<div><form:errors path="upwd"/></div>
		</td>
	</tr>
	<tr>
		<td align="right" colspan="3" style="padding-top: 135px">	
			<a onclick = "pwfind(this.form)">아이디찾기/</a>
			<a onclick = "idfind(this.form)">비밀번호찾기</a>&nbsp;&nbsp;|&nbsp;&nbsp;
			<a href="memberjoin.do"><spring:message code="memberlogin.form.join"/></a>&nbsp;&nbsp;|&nbsp;&nbsp;
		</td>
	</tr>
	<tr>
		<td colspan="4">
			<hr color="gray">
		</td>
	</tr>
	</table>
	</form:form>
</body>
</html>